package com.huanletao.spring.aop;

import org.springframework.aop.framework.AopProxyUtils;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * <p>
 *
 * </p>
 *
 * @package: com.huanletao.spring.aop
 * @Description:
 * @className: Main
 * @author: @ 踏雪无痕
 * @copyright: Copyright (c) 2022/6/26 16:29
 * @version: V1.0
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext applicationContext = new AnnotationConfigApplicationContext(BeanConfig.class);
        LoginController bean = applicationContext.getBean(LoginController.class);
        bean.login("admin", "123");

        AopProxyUtils.getSingletonTarget(null);

    }
}
